.topic-list {
  .topic-item {
    padding: 12px 12px;
    display: flex;
    position: relative;
    overflow: hidden;
    transition: background 0.5s;
    border-radius: 3px;
    background: var(--bg-color);

    &:not(:last-child) {
      margin-bottom: 10px;
    }

    &:hover {
      background: var(--bg-color2);
    }

    .topic-main-content {
      flex: 1;
      margin-left: 12px;

      .topic-top {
        margin-bottom: 8px;

        .topic-userinfo {
          display: inline-flex;
          align-items: center;

          a {
            font-weight: 700;
            font-size: 16px;
            color: var(--text-color3);
            display: flex;
            max-width: 250px;
            overflow: hidden;
          }

          .topic-inline-avatar {
            display: none;
            margin-right: 5px;
          }
        }

        .topic-sticky-icon {
          color: var(--color-red);
          border: 1px solid var(--color-red);
          border-radius: 2px;
          font-size: 12px;
          font-weight: 700;
          padding: 0 5px;
          margin-left: 10px;
        }

        .topic-time {
          color: var(--text-color3);
          font-size: 12px;
          float: right;
          display: flex;
        }

        @media screen and (max-width: 1024px) {
          .topic-time {
            float: none;
            margin-top: 8px;
          }
        }
      }

      .topic-content {
        .topic-title {
          display: inline-block;
          margin-bottom: 6px;
          word-wrap: break-word;
          word-break: break-all;
          width: 100%;

          a {
            // color: #3273dc;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-color);

            &:hover {
              //color: #3273dc;
              text-decoration: underline;
            }
          }
        }

        .topic-summary {
          display: inline-block;
          font-size: 15px;
          margin-bottom: 6px;
          width: 100%;
          text-decoration: none;
          color: var(--text-color2);
          word-wrap: break-word;

          overflow: hidden;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3;
          text-align: justify;
          word-break: break-all;
          text-overflow: ellipsis;
        }

        &.topic-tweet {
          .topic-summary {
            color: var(--text-color);
            white-space: pre-line;
          }
        }

        .topic-image-list {
          margin-top: 10px;

          li {
            cursor: pointer;
            text-align: center;

            display: inline-block;
            vertical-align: middle;
            margin: 0 8px 8px 0;
            background-color: var(--bg-color2);
            background-size: 32px 32px;
            background-position: 50%;
            background-repeat: no-repeat;
            overflow: hidden;
            position: relative;

            .image-item {
              display: block;
              overflow: hidden;
              transform-style: preserve-3d;

              & > img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: all 0.5s ease-out 0.1s;

                &:hover {
                  transform: matrix(1.04, 0, 0, 1.04, 0, 0);
                  backface-visibility: hidden;
                }
              }
            }

            /* 只有一个图片时 */
            &:first-child:nth-last-child(1) {
              width: 210px;
              height: 210px;
              line-height: 210px;

              .image-item {
                width: 210px;
                height: 210px;
              }
            }

            /* 只有两个图片时 */
            &:first-child:nth-last-child(2),
            &:first-child:nth-last-child(2) ~ li {
              width: 180px;
              height: 180px;
              line-height: 180px;

              .image-item {
                width: 180px;
                height: 180px;
              }
            }

            /*大于两个图片时*/
            &:first-child:nth-last-child(n + 3),
            &:first-child:nth-last-child(n + 3) ~ li {
              width: 120px;
              height: 120px;
              line-height: 120px;

              .image-item {
                width: 120px;
                height: 120px;
              }
            }
          }
        }
      }

      .topic-bottom {
        display: flex;

        .topic-handlers {
          display: flex;
          align-items: center;
          margin-top: 6px;
          font-size: 12px;
          flex: 1;

          .btn {
            color: var(--text-color3);
            cursor: pointer;

            &:not(:last-child) {
              margin-right: 20px;
            }

            &:hover {
              color: var(--text-link-color);
            }

            i {
              margin-right: 3px;
              font-size: 12px;
              position: relative;
            }
          }
        }

        .topic-tags {
          span {
            font-size: 11px;
            margin-left: 6px;

            a {
              //height: 25px;
              padding: 0 8px;
              //display: inline-flex;
              justify-content: center;
              align-items: center;
              border-radius: 12.5px;
              margin-right: 10px;
              background: var(--bg-color2);
              border: 1px solid var(--border-color2);
              color: var(--text-color3);
              font-size: 12px;

              &:hover {
                color: var(--text-link-color);
                background: var(--bg-color);
                border: 1px solid var(--border-hover-color);
              }
            }
          }
        }
      }

      .liked {
        color: var(--color-red) !important;
      }
    }

    @media screen and (max-width: 768px) {
      .topic-avatar {
        display: none;
      }

      .topic-main-content {
        margin-left: 0;

        .topic-inline-avatar {
          display: block !important;
        }

        .topic-bottom {
          .topic-tags {
            display: none;
          }
        }
      }
    }
  }
}
